<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%  //获取静态资源的绝对路径
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" 
							+ request.getServerPort() + path+"/";
%>
<!DOCTYPE html>
<html lang="en" class="bg-dark">

	<head>
		<meta charset="utf-8" />
		<title>登录</title>
		<meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
		<link rel="stylesheet" href="<%= basePath %>css/app.v2.css" type="text/css" />
	</head>

	<body>
	<s:actionmessage/>
<s:actionerror/>
<s:fielderror/>
		<section id="content" class="m-t-lg wrapper-md animated fadeInUp">
			<div class="container aside-xxl"> 
			<!-- class="navbar-brand block" -->
					<a  class="navbar-brand block" style="font-size:25px; color:#528fc6;text-align:center" href="#">文献检索与管理系统</a>
					<section class="panel panel-default bg-white m-t-lg">
						<header class="panel-heading text-center">
							<strong>登录</strong>
						</header>
						
						<!-- 增删改结果提示 -->
						<%-- <jsp:include page="<%= basePath %>/common/top.jsp"></jsp:include> --%>
						
						<s:form action="Login_login.action" method="post" 
								class="panel-body wrapper-lg" data-validate="parsley">
							<div class="form-group">
								
									
									<label class="control-label"><s:text name="login.userLoginName.lable"></s:text></label>
									<s:textfield id="Text1" name="user.userLoginName" class="form-control input-lg" placeholder="请输入用户名" data-required="true"
									data-rangelength="[4,30]" data-notblank="true" key="login.userLoginName.lable"/>
							</div>
							<div class="form-group">
							
									<label class="control-label"><s:text name="login.userPassword.lable"></s:text> </label> 
									 <s:password id="inputPassword" name="user.userPassword" class="form-control input-lg" data-required="true"
									data-rangelength="[6,15]" data-notblank="true"
									placeholder="请输入密码" key="login.userPassword.lable"/> 
							</div>
							
							
							
							<div style="text-align: center;">
								<!-- <button type="submit" class="btn btn-primary">登录</button> -->
								 <s:submit name="submit" key="login.submit.button" class="btn btn-primary"/>
							</div>
					</s:form>
				</section>
			</div>
		</section>
		<script type="text/javascript" src="<%= basePath %>js/app.v2.js"></script>
	    <script type="text/javascript" src="<%= basePath %>js/parsley/parsley.min.js"></script>
	    <script type="text/javascript">
		 	// 更换验证码
	        $('#captchaImage').click(function(){
	            $('#captchaImage').attr("src", "<%= basePath %>captcha?timestamp=" + (new Date()).valueOf());
	        }); 
	    </script>
	</body>
</html>